package com.ming.service.impl;

import com.ming.dao.StudentDao;
import com.ming.entity.Student;
import com.ming.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudentServiceImpl implements StudentService {
    @Autowired
    private StudentDao studentDao;
    @Override
    public List<Student> list() {
        return studentDao.list();
    }

    @Override
    public boolean insertStudent(Student student) {
        return studentDao.insertStudent(student);
    }

    @Override
    public boolean updateStudentSex1(String id) {
        return studentDao.updateStudentSex1(id);
    }

    @Override
    public boolean updateStudentSex0(String id) {
        return studentDao.updateStudentSex0(id);
    }

    @Override
    public boolean deleteStudent(String id) {
        return studentDao.deleteStudent(id);
    }
}
